package cn.itcast.order.clients;

import cn.itcast.order.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author:王亚栋
 * @Date: 2023/5/25 上午8:36
 * @Version:1.0
 */
@FeignClient("userservice")
public interface UserClient {

    /**
     * 接口的声明
     * @param id
     * @return
     */
    @GetMapping("/user/{id}")
    User findById(@PathVariable("id") Long id);
}
